import { isNull, forInObject, isEmpty, storage, router } from "@/cool";
import { ref } from "vue";
// import zhcn from "./zh-cn.json";
// import zhtw from "./zh-tw.json";
// import en from "./en.json";
// import es from "./es.json";
// import ja from "./ja.json";
// import ko from "./ko.json";
// import fr from "./fr.json";
import { config } from "@/config";

// 解析语言包
function parse(val: string[][]) {
	const isCustom = val.length == 1 && val[0].length == 1;

	if (!isCustom) {
		return val;
	}

	return val[0][0].split("<__&__>").map((e) => e.split("<__=__>"));
}

/**
 * 语言包映射对象，包含所有已支持的语言。
 * 如需新增语言，只需新建对应的 xx.json 文件并在此处引入即可。
 */
const en=[
  [
    "其他",
    "Other"
  ],
  [
    "文件管理",
    "File Management"
  ],
  [
    "该模板正在开发中",
    "This template is under development"
  ],
  [
    "未登录",
    "Not logged in"
  ],
  [
    "总点击",
    "Total clicks"
  ],
  [
    "赞",
    "Like"
  ],
  [
    "收藏",
    "Favorite"
  ],
  [
    "粉丝",
    "Fans"
  ],
  [
    "接单模式",
    "Order receiving mode"
  ],
  [
    "已关闭",
    "Closed"
  ],
  [
    "消息通知",
    "Message notification"
  ],
  [
    "待支付",
    "Pending payment"
  ],
  [
    "未发货",
    "Not shipped"
  ],
  [
    "已发货",
    "Shipped"
  ],
  [
    "售后 / 退款",
    "After-sales / Refund"
  ],
  [
    "我的钱包",
    "My wallet"
  ],
  [
    "数据看板",
    "Data dashboard"
  ],
  [
    "历史记录",
    "History"
  ],
  [
    "邀请好友",
    "Invite friends"
  ],
  [
    "设置",
    "Settings"
  ],
  [
    "转动图片",
    "Rotate Picture"
  ],
  [
    "验证通过",
    "Verification Passed"
  ],
  [
    "验证失败",
    "Verification Failed"
  ],
  [
    "操作",
    "Operation"
  ],
  [
    "清空",
    "Clear"
  ],
  [
    "预览",
    "Preview"
  ],
  [
    "设置高度",
    "Set Height"
  ],
  [
    "毛笔效果",
    "Brush Effect"
  ],
  [
    "添加LOGO",
    "Add LOGO"
  ],
  [
    "圆角定位点",
    "Rounded Corner Anchor Point"
  ],
  [
    "内间距",
    "Inner Spacing"
  ],
  [
    "导出图片",
    "Export Picture"
  ],
  [
    "矩形",
    "Rectangle"
  ],
  [
    "点",
    "Point"
  ],
  [
    "线性",
    "Linear"
  ],
  [
    "小方格",
    "Small Square"
  ],
  [
    "格式化",
    "Format"
  ],
  [
    "添加",
    "Add"
  ],
  [
    "减去",
    "Subtract"
  ],
  [
    "获取某个单位的开始时间",
    "Get the Start Time of a Certain Unit"
  ],
  [
    "密码输入",
    "Password input"
  ],
  [
    "可清除",
    "Clearable"
  ],
  [
    "左右插槽",
    "Left and right slots"
  ],
  [
    "左图标",
    "Left icon"
  ],
  [
    "右图标",
    "Right icon"
  ],
  [
    "自动聚焦",
    "Auto focus"
  ],
  [
    "长度为6",
    "Length is 6"
  ],
  [
    "步进为10",
    "Step is 10"
  ],
  [
    "最小为10",
    "Minimum is 10"
  ],
  [
    "最大为50",
    "Maximum is 50"
  ],
  [
    "可以小数",
    "Can be decimal"
  ],
  [
    "可以输入",
    "Can be input"
  ],
  [
    "用户名",
    "Username"
  ],
  [
    "请输入用户名",
    "Please enter username"
  ],
  [
    "邮箱",
    "Email"
  ],
  [
    "请输入邮箱地址",
    "Please enter email address"
  ],
  [
    "动态验证",
    "Dynamic verification"
  ],
  [
    "联系人",
    "Contact"
  ],
  [
    "添加联系人",
    "Add contact"
  ],
  [
    "身高",
    "Height"
  ],
  [
    "跑马灯",
    "Marquee"
  ],
  [
    "分页",
    "Pagination"
  ],
  [
    "时间轴",
    "Timeline"
  ],
  [
    "拖拽",
    "Drag"
  ],
  [
    "筛选栏",
    "Filter Bar"
  ],
  [
    "树形结构",
    "Tree Structure"
  ],
  [
    "状态组件",
    "Status Component"
  ],
  [
    "角标",
    "Badge"
  ],
  [
    "通知栏",
    "Notification Bar"
  ],
  [
    "倒计时",
    "Countdown"
  ],
  [
    "数字滚动",
    "Digital Scrolling"
  ],
  [
    "进度条",
    "Progress Bar"
  ],
  [
    "圆形进度条",
    "Circular Progress Bar"
  ],
  [
    "骨架图",
    "Skeleton Screen"
  ],
  [
    "加载更多",
    "Load More"
  ],
  [
    "反馈组件",
    "Feedback Component"
  ],
  [
    "操作菜单",
    "Operation Menu"
  ],
  [
    "弹窗",
    "Pop-up Window"
  ],
  [
    "确认框",
    "Confirmation Box"
  ],
  [
    "提示框",
    "Prompt Box"
  ],
  [
    "签名",
    "Signature"
  ],
  [
    "水印",
    "Watermark"
  ],
  [
    "图片裁剪",
    "Image Cropping"
  ],
  [
    "Canvas",
    "Canvas"
  ],
  [
    "富文本",
    "Rich Text"
  ],
  [
    "该功能正在开发中",
    "This function is under development"
  ],
  [
    "圆形",
    "Circle"
  ],
  [
    "组合",
    "Combination"
  ],
  [
    "基础用法",
    "Basic Usage"
  ],
  [
    "自定义",
    "Customization"
  ],
  [
    "加快滚动速度",
    "Speed up scrolling"
  ],
  [
    "显示小数位数",
    "Display decimal places"
  ],
  [
    "自定义样式",
    "Custom style"
  ],
  [
    "自定义颜色",
    "Custom color"
  ],
  [
    "自定义宽度",
    "Custom width"
  ],
  [
    "不显示文本",
    "Do not display text"
  ],
  [
    "改个颜色",
    "Change the color"
  ],
  [
    "显示文本",
    "Display text"
  ],
  [
    "快一些",
    "Faster"
  ],
  [
    "带图标",
    "With icon"
  ],
  [
    "设置速度",
    "Set speed"
  ],
  [
    "左间隔",
    "Left interval"
  ],
  [
    "右移动",
    "Right move"
  ],
  [
    "左移动",
    "Left move"
  ],
  [
    "多个数据",
    "Multiple data"
  ],
  [
    "点击收起",
    "Click to collapse"
  ],
  [
    "点击展开",
    "Click to expand"
  ],
  [
    "ref 方式调用",
    "Call by ref method"
  ],
  [
    "自定义图标、文字、大小",
    "Customize icon, text, size"
  ],
  [
    "上传证件照",
    "Upload ID photo"
  ],
  [
    "多选",
    "Multiple selection"
  ],
  [
    "限制 3 个",
    "Limit 3"
  ],
  [
    "边框",
    "Border"
  ],
  [
    "显示字数",
    "Displayed characters"
  ],
  [
    "自动增高",
    "Auto increase"
  ],
  [
    "其他颜色",
    "Other colors"
  ],
  [
    "大一点",
    "Bigger"
  ],
  [
    "正方形",
    "Square"
  ],
  [
    "范围选择",
    "Range selection"
  ],
  [
    "显示值",
    "Display value"
  ],
  [
    "步长10",
    "Step 10"
  ],
  [
    "开发中，敬请期待",
    "Under development, please look forward to it"
  ],
  [
    "基础组件",
    "Basic components"
  ],
  [
    "文本",
    "Text"
  ],
  [
    "按钮",
    "Button"
  ],
  [
    "图片",
    "Image"
  ],
  [
    "图标",
    "Icon"
  ],
  [
    "标签",
    "Label"
  ],
  [
    "表单组件",
    "Form components"
  ],
  [
    "表单验证",
    "Form validation"
  ],
  [
    "输入框",
    "Input box"
  ],
  [
    "文本域",
    "Text area"
  ],
  [
    "计数器",
    "Counter"
  ],
  [
    "口令输入",
    "Password input"
  ],
  [
    "键盘",
    "Keyboard"
  ],
  [
    "单选框",
    "Radio box"
  ],
  [
    "多选框",
    "Checkbox"
  ],
  [
    "开关",
    "Switch"
  ],
  [
    "评分",
    "Rating"
  ],
  [
    "滑块",
    "Slider"
  ],
  [
    "选择器",
    "Selector"
  ],
  [
    "可滑动",
    "Swipeable"
  ],
  [
    "左滑编辑",
    "Swipe left to edit"
  ],
  [
    "编辑",
    "Edit"
  ],
  [
    "右滑删除",
    "Swipe right to delete"
  ],
  [
    "账号",
    "Account"
  ],
  [
    "我的订单",
    "My Orders"
  ],
  [
    "我的收藏",
    "My Favorites"
  ],
  [
    "筛选",
    "Filter"
  ],
  [
    "长按项即可拖动排序",
    "Long press on an item to drag and sort"
  ],
  [
    "单列排序",
    "Single-column sorting"
  ],
  [
    "不需要长按",
    "No long press required"
  ],
  [
    "结合列表使用",
    "Use in combination with a list"
  ],
  [
    "多列排序",
    "Multi-column sorting"
  ],
  [
    "结合图片使用",
    "Use in combination with images"
  ],
  [
    "禁用手势",
    "Disable gestures"
  ],
  [
    "自定义样式2",
    "Custom style 2"
  ],
  [
    "无图片",
    "No image"
  ],
  [
    "圆角",
    "Rounded corners"
  ],
  [
    "自定义大小",
    "Custom size"
  ],
  [
    "省略号",
    "Ellipsis"
  ],
  [
    "多行省略号",
    "Multi-line ellipsis"
  ],
  [
    "金额",
    "Amount"
  ],
  [
    "手机号脱敏",
    "Mobile number desensitization"
  ],
  [
    "姓名脱敏",
    "Name desensitization"
  ],
  [
    "邮箱脱敏",
    "Email desensitization"
  ],
  [
    "银行卡脱敏",
    "Bank card desensitization"
  ],
  [
    "自定义脱敏字符",
    "Custom desensitization character"
  ],
  [
    "主要",
    "Main"
  ],
  [
    "危险",
    "Dangerous"
  ],
  [
    "信息",
    "Information"
  ],
  [
    "邮件",
    "Mail"
  ],
  [
    "文件",
    "File"
  ],
  [
    "可关闭",
    "Closable"
  ],
  [
    "镂空",
    "Hollowed out"
  ],
  [
    "自定义无圆角",
    "Custom without rounded corners"
  ],
  [
    "不同裁剪",
    "Different cropping"
  ],
  [
    "点击可预览",
    "Click to preview"
  ],
  [
    "失败时显示",
    "Display when failed"
  ],
  [
    "自定义圆角",
    "Custom rounded corners"
  ],
  [
    "设置颜色",
    "Set color"
  ],
  [
    "垂直方向",
    "Vertical direction"
  ],
  [
    "3秒后加载完成",
    "Load completed after 3 seconds"
  ],
  [
    "隐藏为 00 的值",
    "Hide the value of 00"
  ],
  [
    "指定天数",
    "Specify the number of days"
  ],
  [
    "自定义模板",
    "Custom template"
  ],
  [
    "指定小时",
    "Specify the hour"
  ],
  [
    "指定分钟",
    "Specify the minute"
  ],
  [
    "指定秒",
    "Specify the second"
  ],
  [
    "完成后提示",
    "Prompt after completion"
  ],
  [
    "3秒后开始倒计时",
    "Start the countdown after 3 seconds"
  ],
  [
    "结合按钮",
    "Combine with button"
  ],
  [
    "购买",
    "Purchase"
  ],
  [
    "消息",
    "Message"
  ],
  [
    "结合图片",
    "Combine with picture"
  ],
  [
    "结合图标",
    "Combine with icon"
  ],
  [
    "点击触发",
    "Click to trigger"
  ],
  [
    "不同大小",
    "Different sizes"
  ],
  [
    "不同颜色",
    "Different colors"
  ],
  [
    "使用base64",
    "Use base64"
  ],
  [
    "没有错误提示",
    "No error prompt"
  ],
  [
    "体重",
    "Weight"
  ],
  [
    "所在地区",
    "Location"
  ],
  [
    "出生年月",
    "Date of Birth"
  ],
  [
    "个人简介",
    "Personal Introduction"
  ],
  [
    "请输入个人简介",
    "Please enter your personal introduction"
  ],
  [
    "公开状态",
    "Public Status"
  ],
  [
    "重置",
    "Reset"
  ],
  [
    "提交",
    "Submit"
  ],
  [
    "未知",
    "Unknown"
  ],
  [
    "篮球",
    "Basketball"
  ],
  [
    "足球",
    "Football"
  ],
  [
    "羽毛球",
    "Badminton"
  ],
  [
    "乒乓球",
    "Table Tennis"
  ],
  [
    "游泳",
    "Swimming"
  ],
  [
    "用户名不能为空",
    "Username cannot be empty"
  ],
  [
    "用户名长度在3-20个字符之间",
    "Username length should be between 3 and 20 characters"
  ],
  [
    "邮箱不能为空",
    "Email cannot be empty"
  ],
  [
    "邮箱格式不正确",
    "Invalid email format"
  ],
  [
    "身高不能为空",
    "Height cannot be empty"
  ],
  [
    "身高在160-190cm之间",
    "Height should be between 160 and 190 cm"
  ],
  [
    "显示星期",
    "Show week"
  ],
  [
    "显示其他月份",
    "Show other months"
  ],
  [
    "不同位置",
    "Different positions"
  ],
  [
    "顶部",
    "Top"
  ],
  [
    "中间",
    "Middle"
  ],
  [
    "底部",
    "Bottom"
  ],
  [
    "不同类型",
    "Different types"
  ],
  [
    "成功",
    "Success"
  ],
  [
    "失败",
    "Failure"
  ],
  [
    "警告",
    "Warning"
  ],
  [
    "问题",
    "Problem"
  ],
  [
    "停止",
    "Stop"
  ],
  [
    "自定义图标",
    "Custom icon"
  ],
  [
    "只存在一个",
    "Only one exists"
  ],
  [
    "不同位置提示",
    "Different position tips"
  ],
  [
    "不同类型提示",
    "Different type tips"
  ],
  [
    "带图标提示",
    "Tips with icon"
  ],
  [
    "移除其他已存在的提示",
    "Remove other existing tips"
  ],
  [
    "打开弹窗",
    "Open pop-up window"
  ],
  [
    "设置宽度 80%",
    "Set width 80%"
  ],
  [
    "充值1000元",
    "Recharge 1000 yuan"
  ],
  [
    "完成首笔交易",
    "Complete the first transaction"
  ],
  [
    "优选灵活配置混合A",
    "Preferred Flexible Allocation Hybrid A"
  ],
  [
    "1000元起",
    "Starting from 1000 yuan"
  ],
  [
    "禁用切换按钮",
    "Disable the switch button"
  ],
  [
    "自定义高度",
    "Customize height"
  ],
  [
    "多页数",
    "Multiple pages"
  ],
  [
    "上一页",
    "Previous page"
  ],
  [
    "下一页",
    "Next page"
  ],
  [
    "横向滚动",
    "Horizontal scroll"
  ],
  [
    "纵向滚动",
    "Vertical scroll"
  ],
  [
    "快一点",
    "Faster"
  ],
  [
    "暂停",
    "Pause"
  ],
  [
    "内容靠左",
    "Content aligned to the left"
  ],
  [
    "QQ",
    "QQ"
  ],
  [
    "带箭头",
    "With arrow"
  ],
  [
    "余额",
    "Balance"
  ],
  [
    "带图片",
    "With picture"
  ],
  [
    "神仙都没用",
    "Even the gods are useless"
  ],
  [
    "折叠",
    "Fold"
  ],
  [
    "插槽",
    "Slot"
  ],
  [
    "使用 PT 自定义颜色",
    "Use PT to customize color"
  ],
  [
    "自定义返回图标",
    "Customize back icon"
  ],
  [
    "自定义返回路径",
    "Customize back path"
  ],
  [
    "自定义标题内容",
    "Customize title content"
  ],
  [
    "显示滑块",
    "Show slider"
  ],
  [
    "添加间距",
    "Add spacing"
  ],
  [
    "横向填充",
    "Horizontal fill"
  ],
  [
    "适用于标签数量不多的情况",
    "Suitable for cases with few labels"
  ],
  [
    "居中",
    "Center"
  ],
  [
    "单个禁用",
    "Single disable"
  ],
  [
    "显示下划线",
    "Show underline"
  ],
  [
    "禁用",
    "Disable"
  ],
  [
    "取消订单",
    "Cancel order"
  ],
  [
    "立即购买",
    "Buy now"
  ],
  [
    "确认收货",
    "Confirm receipt of goods"
  ],
  [
    "评价",
    "Evaluate"
  ],
  [
    "禁用状态，无法拖拽",
    "Disabled state, cannot be dragged"
  ],
  [
    "不吸附边缘，任意位置可拖拽",
    "Does not adhere to the edge, can be dragged anywhere"
  ],
  [
    "这是一个提示",
    "This is a tip"
  ],
  [
    "标签格式化",
    "Label formatting"
  ],
  [
    "固定开始、结束日期",
    "Fixed start and end dates"
  ],
  [
    "自定义快捷选项",
    "Custom quick options"
  ],
  [
    "只读",
    "Read-only"
  ],
  [
    "显示分数",
    "Show scores"
  ],
  [
    "允许半星",
    "Allow half stars"
  ],
  [
    "换个图标",
    "Change the icon"
  ],
  [
    "纵向排列",
    "Vertical arrangement"
  ],
  [
    "换个样式",
    "Change the style"
  ],
  [
    "不显示图标",
    "Do not show the icon"
  ],
  [
    "其他样式",
    "Other styles"
  ],
  [
    "数字键盘",
    "Numeric keypad"
  ],
  [
    "打开键盘",
    "Open the keyboard"
  ],
  [
    "是否显示输入值",
    "Whether to display the input value"
  ],
  [
    "输入即绑定",
    "Bind on input"
  ],
  [
    "身份证键盘",
    "ID card keypad"
  ],
  [
    "密码键盘",
    "Password keypad"
  ],
  [
    "是否加密",
    "Whether to encrypt"
  ],
  [
    "车牌号键盘",
    "License plate number keypad"
  ],
  [
    "数字输入",
    "Numeric input"
  ],
  [
    "请输入验证码",
    "Please enter the verification code"
  ],
  [
    "登录",
    "Login"
  ],
  [
    "购物车 ({num})",
    "Shopping Cart ({num})"
  ],
  [
    "完成",
    "Complete"
  ],
  [
    "管理",
    "Manage"
  ],
  [
    "删除",
    "Delete"
  ],
  [
    "全选",
    "Select All"
  ],
  [
    "合计",
    "Total"
  ],
  [
    "去结算",
    "Go to Checkout"
  ],
  [
    "温馨提示",
    "Warm Prompt"
  ],
  [
    "确定删除该商品吗？",
    "Are you sure to delete this product?"
  ],
  [
    "删除成功",
    "Delete successfully"
  ],
  [
    "请先选择商品",
    "Please select a product first"
  ],
  [
    "确定删除选中的商品吗？",
    "Are you sure to delete the selected products?"
  ],
  [
    "您需支付 {price} 元，请确认支付",
    "You need to pay {price} yuan. Please confirm the payment"
  ],
  [
    "支付成功",
    "Payment successful"
  ],
  [
    "已设为默认",
    "Set as default"
  ],
  [
    "设为默认",
    "Set as default"
  ],
  [
    "修改",
    "Modify"
  ],
  [
    "添加地址",
    "Add address"
  ],
  [
    "Flex 弹性布局",
    "Flex Elastic Layout"
  ],
  [
    "Tabs 标签页",
    "Tabs"
  ],
  [
    "Collapse 折叠面板",
    "Collapse Panel"
  ],
  [
    "Sticky 吸顶",
    "Sticky"
  ],
  [
    "TopBar 导航栏",
    "TopBar Navigation Bar"
  ],
  [
    "FloatView 悬浮视图",
    "FloatView Floating View"
  ],
  [
    "Footer 底部视图",
    "Footer Bottom View"
  ],
  [
    "List 列表",
    "List"
  ],
  [
    "ListView 列表视图",
    "ListView List View"
  ],
  [
    "ListViewRefresh 列表刷新",
    "ListViewRefresh List Refresh"
  ],
  [
    "Waterfall 瀑布流",
    "Waterfall Flow"
  ],
  [
    "Banner 轮播图",
    "Banner Carousel"
  ],
  [
    "Marquee 跑马灯",
    "Marquee Moving Light"
  ],
  [
    "Pagination 分页",
    "Pagination"
  ],
  [
    "Timeline 时间轴",
    "Timeline Time Axis"
  ],
  [
    "Avatar 头像",
    "Avatar"
  ],
  [
    "ReadMore 查看更多",
    "ReadMore View More"
  ],
  [
    "Draggable 拖拽",
    "Draggable Drag"
  ],
  [
    "FilterBar 筛选栏",
    "FilterBar Filter Bar"
  ],
  [
    "Tree 树形结构",
    "Tree Tree Structure"
  ],
  [
    "获取某个单位的结束时间",
    "Get the end time of a certain unit"
  ],
  [
    "是否同一天",
    "Is it the same day"
  ],
  [
    "是否早于",
    "Is it earlier than"
  ],
  [
    "是否晚于",
    "Is it later than"
  ],
  [
    "差值",
    "Difference"
  ],
  [
    "差值（单位）",
    "Difference (unit)"
  ],
  [
    "选择图片",
    "Select a picture"
  ],
  [
    "可调节裁剪框大小",
    "Adjust the size of the cropping frame"
  ],
  [
    "预览图片",
    "Preview the picture"
  ],
  [
    "保存图片",
    "Save the picture"
  ],
  [
    "本页面内容由 canvas 渲染生成，是否立即预览图片效果？",
    "The content of this page is rendered by canvas. Do you want to preview the picture effect immediately?"
  ],
  [
    "基础动画",
    "Basic animation"
  ],
  [
    "淡入淡出",
    "Fade in and out"
  ],
  [
    "播放动画",
    "Play animation"
  ],
  [
    "滑入",
    "Slide in"
  ],
  [
    "旋转翻转",
    "Rotate and flip"
  ],
  [
    "摇摆抖动",
    "Sway and shake"
  ],
  [
    "特殊效果",
    "Special effects"
  ],
  [
    "组合动画",
    "Combined animation"
  ],
  [
    "标题",
    "Title"
  ],
  [
    "已阅读并同意",
    "Read and agreed"
  ],
  [
    "用户协议",
    "User Agreement"
  ],
  [
    "隐私政策",
    "Privacy Policy"
  ],
  [
    "请先阅读并同意《用户协议》和《隐私政策》",
    "Please read and agree to the User Agreement and Privacy Policy first"
  ],
  [
    "我的昵称",
    "My Nickname"
  ],
  [
    "简介",
    "Profile"
  ],
  [
    "介绍一下自己",
    "Introduce yourself"
  ],
  [
    "性别",
    "Gender"
  ],
  [
    "编辑性别",
    "Edit Gender"
  ],
  [
    "生日",
    "Birthday"
  ],
  [
    "选择生日",
    "Select Birthday"
  ],
  [
    "地区",
    "Region"
  ],
  [
    "选择所在的地区",
    "Select your region"
  ],
  [
    "选择性别",
    "Select Gender"
  ],
  [
    "保密",
    "Confidential"
  ],
  [
    "男",
    "Male"
  ],
  [
    "女",
    "Female"
  ],
  [
    "性别设置成功",
    "Gender settings successful"
  ],
  [
    "生日设置成功",
    "Birthday settings successful"
  ],
  [
    "地区设置成功",
    "Region settings successful"
  ],
  [
    "关于{name}",
    "About {name}"
  ],
  [
    "联系客服",
    "Contact customer service"
  ],
  [
    "退出登录",
    "Log out"
  ],
  [
    "确定退出登录吗？",
    "Are you sure you want to log out?"
  ],
  [
    "深色模式",
    "Dark mode"
  ],
  [
    "多语言",
    "Multi-language"
  ],
  [
    "字体大小",
    "Font size"
  ],
  [
    "访问官网",
    "Visit official website"
  ],
  [
    "商城",
    "Mall"
  ],
  [
    "商品分类",
    "Product category"
  ],
  [
    "商品详情",
    "Product details"
  ],
  [
    "商品列表、筛选",
    "Product list, filtering"
  ],
  [
    "购物车",
    "Shopping cart"
  ],
  [
    "订单列表、详情",
    "Order list, details"
  ],
  [
    "收货地址",
    "Delivery address"
  ],
  [
    "聊天",
    "Chat"
  ],
  [
    "对话列表、历史记录",
    "Conversation list, history"
  ],
  [
    "流式回复",
    "Streaming reply"
  ],
  [
    "语言合成",
    "Text-to-Speech"
  ],
  [
    "语音识别",
    "Speech recognition"
  ],
  [
    "Animation 动画",
    "Animation Animation"
  ],
  [
    "编辑地址",
    "Edit Address"
  ],
  [
    "cool-unix",
    "cool-unix"
  ],
  [
    "首页",
    "Home Page"
  ],
  [
    "我的",
    "Mine"
  ],
  [
    "删除地址后无法恢复，确认要删除该地址吗？",
    "The address cannot be restored after deletion. Are you sure you want to delete this address?"
  ],
  [
    "加载中",
    "Loading"
  ],
  [
    "收货人",
    "Consignee"
  ],
  [
    "请输入收货人姓名",
    "Please enter the consignee's name"
  ],
  [
    "手机号",
    "Mobile phone number"
  ],
  [
    "选择省市区",
    "Select province, city and district"
  ],
  [
    "详细地址",
    "Detailed address"
  ],
  [
    "小区楼栋、门牌号、村等",
    "Residential building number, house number, village, etc."
  ],
  [
    "默认地址",
    "Default address"
  ],
  [
    "保存",
    "Save"
  ],
  [
    "收货人不能为空",
    "The consignee cannot be empty"
  ],
  [
    "手机号不能为空",
    "The mobile phone number cannot be empty"
  ],
  [
    "手机号格式不正确",
    "The mobile phone number format is incorrect"
  ],
  [
    "详细地址不能为空",
    "The detailed address cannot be empty"
  ],
  [
    "所在地区不能为空",
    "The location cannot be empty"
  ],
  [
    "保存中",
    "Saving"
  ],
  [
    "开启通知",
    "Enable notifications"
  ],
  [
    "通用设置",
    "General settings"
  ],
  [
    "通知设置",
    "Notification settings"
  ],
  [
    "隐私设置",
    "Privacy settings"
  ],
  [
    "支付失败",
    "Payment failed"
  ],
  [
    "授权信息仅用于用户登录",
    "Authorization information is only used for user login"
  ],
  [
    "登录授权失败",
    "Login authorization failed"
  ],
  [
    "获取短信验证码",
    "Get SMS verification code"
  ],
  [
    "验证码",
    "Verification code"
  ],
  [
    "发送短信",
    "Send SMS"
  ],
  [
    "{n}s后重新获取",
    "Re-get after {n}s"
  ],
  [
    "获取验证码",
    "Get verification code"
  ],
  [
    "短信已发送，请查收",
    "SMS has been sent, please check"
  ],
  [
    "请填写验证码",
    "Please fill in the verification code"
  ],
  [
    "请填写正确的手机号格式",
    "Please fill in the correct mobile phone number format"
  ],
  [
    "全局字号",
    "Global font size"
  ],
  [
    "这是一段示例文字，用于预览不同字号的效果。",
    "This is a sample text for previewing the effects of different font sizes."
  ],
  [
    "默认 1.0",
    "Default 1.0"
  ],
  [
    "切换语言",
    "Switch language"
  ],
  [
    "切换中",
    "Switching"
  ],
  [
    "模板",
    "Template"
  ],
  [
    "编辑资料",
    "Edit profile"
  ],
  [
    "Text 文本",
    "Text"
  ],
  [
    "Button 按钮",
    "Button"
  ],
  [
    "滑块大点",
    "Slider larger"
  ],
  [
    "换个颜色",
    "Change color"
  ],
  [
    "最大50",
    "Maximum 50"
  ],
  [
    "自定义触发器",
    "Custom trigger"
  ],
  [
    "打开选择器",
    "Open selector"
  ],
  [
    "多列",
    "Multiple columns"
  ],
  [
    "通过 children 配置多级数据，并使用 column-count 参数指定显示的列数",
    "Configure multi-level data through children and use the column-count parameter to specify the number of columns to display"
  ],
  [
    "弹窗中使用",
    "Use in pop-up window"
  ],
  [
    "打开",
    "Open"
  ],
  [
    "选择地区",
    "Select region"
  ],
  [
    "绑定值",
    "Bind value"
  ],
  [
    "下一步",
    "Next"
  ],
  [
    "确定",
    "OK"
  ],
  [
    "关闭",
    "Close"
  ],
  [
    "显示取消按钮",
    "Show cancel button"
  ],
  [
    "修改按钮文案",
    "Modify button text"
  ],
  [
    "显示绑定值",
    "Show bound value"
  ],
  [
    "时",
    "When"
  ],
  [
    "时:分",
    "HH:MM"
  ],
  [
    "时:分:秒",
    "HH:MM:SS"
  ],
  [
    "设置大小",
    "Set Size"
  ],
  [
    "集成 iconfont 与 remixicon 图标库，展示部分示例",
    "Integrate iconfont and remixicon icon libraries and display some examples"
  ],
  [
    "iconfont",
    "iconfont"
  ],
  [
    "remixicon",
    "remixicon"
  ],
  [
    "复制成功",
    "Copy Success"
  ],
  [
    "普通",
    "Normal"
  ],
  [
    "浅色",
    "Light Color"
  ],
  [
    "深色",
    "Dark Color"
  ],
  [
    "只显示图标",
    "Only Show Icons"
  ],
  [
    "文本模式",
    "Text Mode"
  ],
  [
    "带边框",
    "With Border"
  ],
  [
    "圆角按钮",
    "Rounded Button"
  ],
  [
    "带左侧图标",
    "With Left Icon"
  ],
  [
    "小",
    "Small"
  ],
  [
    "默认",
    "Default"
  ],
  [
    "大",
    "Large"
  ],
  [
    "无权限",
    "No Permission"
  ],
  [
    "服务异常",
    "Service Exception"
  ],
  [
    "请在微信浏览器中打开",
    "Please Open in WeChat Browser"
  ],
  [
    "已取消支付",
    "Payment Cancelled"
  ],
  [
    "微信",
    "WeChat"
  ],
  [
    "父子关联",
    "Father-son association"
  ],
  [
    "选中值",
    "Selected value"
  ],
  [
    "选中操作",
    "Selection operation"
  ],
  [
    "选中部分节点",
    "Select some nodes"
  ],
  [
    "获取选中节点",
    "Get selected nodes"
  ],
  [
    "获取半选节点",
    "Get half-selected nodes"
  ],
  [
    "清空选中",
    "Clear selection"
  ],
  [
    "展开操作",
    "Expand operation"
  ],
  [
    "展开部分节点",
    "Expand some nodes"
  ],
  [
    "获取展开节点",
    "Get expanded nodes"
  ],
  [
    "展开所有",
    "Expand all"
  ],
  [
    "收起所有",
    "Collapse all"
  ],
  [
    "开通账号",
    "Open an account"
  ],
  [
    "赠送500元",
    "Give 500 yuan"
  ],
  [
    "完成实名认证",
    "Complete real-name authentication"
  ],
  [
    "通过身份证认证",
    "Pass ID card authentication"
  ],
  [
    "绑定银行卡",
    "Bind a bank card"
  ],
  [
    "绑定招商银行储蓄卡",
    "Bind China Merchants Bank savings card"
  ],
  [
    "首次充值",
    "First recharge"
  ],
  [
    "日期选择器",
    "Date Picker"
  ],
  [
    "时间选择器",
    "Time Picker"
  ],
  [
    "级联选择器",
    "Cascading Selector"
  ],
  [
    "文件上传",
    "File Upload"
  ],
  [
    "日历",
    "Calendar"
  ],
  [
    "布局组件",
    "Layout Component"
  ],
  [
    "弹性布局",
    "Flexible Layout"
  ],
  [
    "标签页",
    "Tab"
  ],
  [
    "折叠面板",
    "Collapsible Panel"
  ],
  [
    "吸顶",
    "Sticky"
  ],
  [
    "导航栏",
    "Navigation Bar"
  ],
  [
    "底部视图",
    "Bottom View"
  ],
  [
    "悬浮视图",
    "Floating View"
  ],
  [
    "数据展示",
    "Data Display"
  ],
  [
    "查看更多",
    "View More"
  ],
  [
    "列表",
    "List"
  ],
  [
    "列表视图",
    "ListView"
  ],
  [
    "列表刷新",
    "List Refresh"
  ],
  [
    "瀑布流",
    "Waterfall Flow"
  ],
  [
    "轮播图",
    "Carousel"
  ],
  [
    "无头",
    "Headless"
  ],
  [
    "左侧",
    "Left"
  ],
  [
    "右侧",
    "Right"
  ],
  [
    "隐藏取消按钮",
    "Hide Cancel Button"
  ],
  [
    "自定义文本",
    "Custom Text"
  ],
  [
    "关闭前钩子",
    "Pre-Close Hook"
  ],
  [
    "显示时长",
    "Display Duration"
  ],
  [
    "确定要删除吗？",
    "Are you sure you want to delete?"
  ],
  [
    "确定要删除吗？3秒后自动关闭",
    "Automatically close in 3 seconds after asking if you are sure you want to delete"
  ],
  [
    "带标题、描述",
    "With title and description"
  ],
  [
    "无法点击遮罩关闭",
    "Cannot close by clicking on the mask"
  ],
  [
    "不需要取消按钮",
    "Do not need Cancel Button"
  ],
  [
    "插槽用法",
    "Slot Usage"
  ],
  [
    "反馈",
    "Feedback"
  ],
  [
    "删除好友会同时删除所有聊天记录",
    "Deleting a friend will also delete all chat records"
  ],
  [
    "删除好友",
    "Delete Friend"
  ],
  [
    "确定要删除好友吗？",
    "Are you sure you want to delete the friend?"
  ],
  [
    "点我关闭",
    "Click me to close"
  ],
  [
    "确定要关闭吗？",
    "Are you sure you want to close?"
  ],
  [
    "支付宝",
    "Alipay"
  ],
  [
    "Badge 角标",
    "Badge Corner Mark"
  ],
  [
    "NoticeBar 通知栏",
    "NoticeBar Notification Bar"
  ],
  [
    "Countdown 倒计时",
    "Countdown Countdown Timer"
  ],
  [
    "Progress 进度条",
    "Progress Progress Bar"
  ],
  [
    "ProgressCircle 圆形进度条",
    "ProgressCircle Circular Progress Bar"
  ],
  [
    "Skeleton 骨架图",
    "Skeleton Skeleton Diagram"
  ],
  [
    "LoadMore 加载更多",
    "LoadMore Load More"
  ],
  [
    "RollingNumber 数字滚动",
    "RollingNumber Digital Scroll"
  ],
  [
    "ActionSheet 操作菜单",
    "ActionSheet Operation Menu"
  ],
  [
    "Popup 弹窗",
    "Popup Pop-up Window"
  ],
  [
    "Confirm 确认框",
    "Confirm Confirmation Box"
  ],
  [
    "Toast 提示框",
    "Toast Toast Message"
  ],
  [
    "QRCode 二维码",
    "QRCode QR Code"
  ],
  [
    "Sign 签名",
    "Sign Signature"
  ],
  [
    "DayUts 日期",
    "DayUts Date"
  ],
  [
    "Vibrate 震动",
    "Vibrate Vibration"
  ],
  [
    "Cropper 图片裁剪",
    "Cropper Image Cropper"
  ],
  [
    "Canvas 画布",
    "Canvas Canvas"
  ],
  [
    "SVG 图标",
    "SVG SVG Icon"
  ],
  [
    "SlideVerify 滑动验证",
    "SlideVerify Slide Verification"
  ],
  [
    "体重不能为空",
    "Weight cannot be empty"
  ],
  [
    "体重在40-100kg之间",
    "Weight should be between 40 - 100 kg"
  ],
  [
    "标签不能为空",
    "Label cannot be empty"
  ],
  [
    "标签最多选择2个",
    "At most 2 labels can be selected"
  ],
  [
    "性别不能为空",
    "Gender cannot be empty"
  ],
  [
    "出生年月不能为空",
    "Date of birth cannot be empty"
  ],
  [
    "出生年月不大于2010-01-01",
    "Date of birth should not be later than 2010-01-01"
  ],
  [
    "联系人不能为空",
    "Contact person cannot be empty"
  ],
  [
    "提交成功",
    "Submission successful"
  ],
  [
    "单个 true / false",
    "Single true / false"
  ],
  [
    "带索引、地区选择",
    "With index, area selection"
  ],
  [
    "换个分隔符",
    "Change the delimiter"
  ],
  [
    "列表高度小一点",
    "Make the list height smaller"
  ],
  [
    "范围选",
    "Range selection"
  ],
  [
    "禁用部分日期",
    "Disable some dates"
  ],
  [
    "日历长列表",
    "Calendar long list"
  ],
  [
    "打开日历长列表",
    "Open the calendar long list"
  ],
  [
    "日历面板",
    "Calendar panel"
  ],
  [
    "自定义文案和颜色",
    "Customize text and color"
  ],
  [
    "显示头",
    "Show the header"
  ],
  [
    "头像上传成功",
    "Profile picture uploaded successfully"
  ],
  [
    "编辑昵称",
    "Edit nickname"
  ],
  [
    "请输入昵称",
    "Please enter a nickname"
  ],
  [
    "请设置2-20个字符，不包括@<>/等无效字符",
    "Please set 2-20 characters, excluding invalid characters such as @<>/"
  ],
  [
    "确认",
    "Confirm"
  ],
  [
    "昵称长度需在2-20个字符之间",
    "Nickname length should be between 2-20 characters"
  ],
  [
    "昵称不能包含@<>/等特殊字符",
    "Nickname cannot contain special characters such as @<>/"
  ],
  [
    "编辑简介",
    "Edit profile"
  ],
  [
    "简介不能为空",
    "Profile cannot be empty"
  ],
  [
    "提示",
    "Tip"
  ],
  [
    "为提供更好的服务，我们邀请您填写昵称、头像等公开信息",
    "To provide better service, we invite you to fill in public information such as nickname and profile picture"
  ],
  [
    "头像",
    "Profile picture"
  ],
  [
    "昵称",
    "Nickname"
  ],
  [
    "点击输入昵称",
    "Click to enter nickname"
  ],
  [
    "取消",
    "Cancel"
  ],
  [
    "请上传头像",
    "Please upload a profile picture"
  ],
  [
    "登录中",
    "Logging in"
  ],
  [
    "手机登录",
    "Mobile login"
  ],
  [
    "未注册的手机号登录成功后将自动注册",
    "Unregistered mobile numbers will be automatically registered after successful login"
  ],
  [
    "请输入手机号",
    "Please enter a mobile number"
  ],
  [
    "Image 图片",
    "Image Picture"
  ],
  [
    "Icon 图标",
    "Icon Icon"
  ],
  [
    "Tag 标签",
    "Tag Tag"
  ],
  [
    "Form 表单验证",
    "Form Form Validation"
  ],
  [
    "Input 输入框",
    "Input Input Box"
  ],
  [
    "Textarea 文本域",
    "Textarea Text Area"
  ],
  [
    "InputNumber 计数器",
    "InputNumber Counter"
  ],
  [
    "InputOtp 口令输入",
    "InputOtp Password Input"
  ],
  [
    "Keyboard 键盘",
    "Keyboard Keyboard"
  ],
  [
    "Radio 单选框",
    "Radio Radio Button"
  ],
  [
    "Checkbox 多选框",
    "Checkbox Checkbox"
  ],
  [
    "Switch 开关",
    "Switch Switch"
  ],
  [
    "Rate 评分",
    "Rate Rating"
  ],
  [
    "Slider 滑块",
    "Slider Slider"
  ],
  [
    "Select 选择器",
    "Select Selector"
  ],
  [
    "SelectDate 日期选择器",
    "SelectDate Date Selector"
  ],
  [
    "SelectTime 时间选择器",
    "SelectTime Time Selector"
  ],
  [
    "Cascader 级联选择器",
    "Cascader Cascading Selector"
  ],
  [
    "Upload 文件上传",
    "Upload File Upload"
  ],
  [
    "Calendar 日历",
    "Calendar Calendar"
  ],
  [
    "这是一段需要保护的内容",
    "This is content that needs to be protected"
  ],
  [
    "水印会覆盖在内容上方，防止内容被盗用",
    "Watermarks will be overlaid on the content to prevent unauthorized use"
  ],
  [
    "可自定义的水印内容区域",
    "Customizable watermark content area"
  ],
  [
    "水印文本",
    "Watermark Text"
  ],
  [
    "字体大小",
    "Font Size"
  ],
  [
    "透明度",
    "Opacity"
  ],
  [
    "旋转角度",
    "Rotation Angle"
  ],
  [
    "水印宽度",
    "Watermark Width"
  ],
  [
    "水印高度",
    "Watermark Height"
  ],
  [
    "水平间距",
    "Horizontal Spacing"
  ],
  [
    "垂直间距",
    "Vertical Spacing"
  ],
  [
    "字体粗细",
    "Font Weight"
  ],
  [
    "正常",
    "Normal"
  ],
  [
    "加粗",
    "Bold"
  ],
  [
    "多行文本水印",
    "Multi-line Text Watermark"
  ],
  [
    "重要文档",
    "Important Document"
  ],
  [
    "这是一份重要的文档内容，需要添加水印保护。",
    "This is an important document that requires watermark protection."
  ],
  [
    "水印可以防止内容被未授权的复制和传播。",
    "Watermarks can prevent unauthorized copying and distribution of content."
  ],
  [
    "图片保护",
    "Image Protection"
  ],
  [
    "系统管理",
    "System Management"
  ],
  [
    "星球",
    "Star"
  ],
  [
    "组件",
    "Compent"
  ],
  [
    "开源星球",
    "Git Star"
  ]
];
const zhcn=[
  [
    "已阅读并同意",
    ""
  ],
  [
    "用户协议",
    ""
  ],
  [
    "隐私政策",
    ""
  ],
  [
    "请先阅读并同意《用户协议》和《隐私政策》",
    ""
  ],
  [
    "我的昵称",
    ""
  ],
  [
    "简介",
    ""
  ],
  [
    "介绍一下自己",
    ""
  ],
  [
    "性别",
    ""
  ],
  [
    "编辑性别",
    ""
  ],
  [
    "生日",
    ""
  ],
  [
    "选择生日",
    ""
  ],
  [
    "地区",
    ""
  ],
  [
    "选择所在的地区",
    ""
  ],
  [
    "选择性别",
    ""
  ],
  [
    "保密",
    ""
  ],
  [
    "男",
    ""
  ],
  [
    "女",
    ""
  ],
  [
    "性别设置成功",
    ""
  ],
  [
    "生日设置成功",
    ""
  ],
  [
    "地区设置成功",
    ""
  ],
  [
    "头像上传成功",
    ""
  ],
  [
    "编辑昵称",
    ""
  ],
  [
    "请输入昵称",
    ""
  ],
  [
    "请设置2-20个字符，不包括@<>/等无效字符",
    ""
  ],
  [
    "确认",
    ""
  ],
  [
    "昵称长度需在2-20个字符之间",
    ""
  ],
  [
    "昵称不能包含@<>/等特殊字符",
    ""
  ],
  [
    "编辑简介",
    ""
  ],
  [
    "简介不能为空",
    ""
  ],
  [
    "提示",
    ""
  ],
  [
    "为提供更好的服务，我们邀请您填写昵称、头像等公开信息",
    ""
  ],
  [
    "头像",
    ""
  ],
  [
    "昵称",
    ""
  ],
  [
    "点击输入昵称",
    ""
  ],
  [
    "取消",
    ""
  ],
  [
    "请上传头像",
    ""
  ],
  [
    "登录中",
    ""
  ],
  [
    "手机登录",
    ""
  ],
  [
    "未注册的手机号登录成功后将自动注册",
    ""
  ],
  [
    "请输入手机号",
    ""
  ],
  [
    "请输入验证码",
    ""
  ],
  [
    "登录",
    ""
  ],
  [
    "购物车 ({num})",
    ""
  ],
  [
    "完成",
    ""
  ],
  [
    "管理",
    ""
  ],
  [
    "删除",
    ""
  ],
  [
    "全选",
    ""
  ],
  [
    "合计",
    ""
  ],
  [
    "去结算",
    ""
  ],
  [
    "温馨提示",
    ""
  ],
  [
    "确定删除该商品吗？",
    ""
  ],
  [
    "删除成功",
    ""
  ],
  [
    "请先选择商品",
    ""
  ],
  [
    "确定删除选中的商品吗？",
    ""
  ],
  [
    "您需支付 {price} 元，请确认支付",
    ""
  ],
  [
    "支付成功",
    ""
  ],
  [
    "已设为默认",
    ""
  ],
  [
    "设为默认",
    ""
  ],
  [
    "修改",
    ""
  ],
  [
    "添加地址",
    ""
  ],
  [
    "删除地址后无法恢复，确认要删除该地址吗？",
    ""
  ],
  [
    "加载中",
    ""
  ],
  [
    "收货人",
    ""
  ],
  [
    "请输入收货人姓名",
    ""
  ],
  [
    "手机号",
    ""
  ],
  [
    "选择省市区",
    ""
  ],
  [
    "详细地址",
    ""
  ],
  [
    "小区楼栋、门牌号、村等",
    ""
  ],
  [
    "默认地址",
    ""
  ],
  [
    "保存",
    ""
  ],
  [
    "收货人不能为空",
    ""
  ],
  [
    "手机号不能为空",
    ""
  ],
  [
    "手机号格式不正确",
    ""
  ],
  [
    "详细地址不能为空",
    ""
  ],
  [
    "所在地区不能为空",
    ""
  ],
  [
    "保存中",
    ""
  ],
  [
    "开启通知",
    ""
  ],
  [
    "通用设置",
    ""
  ],
  [
    "通知设置",
    ""
  ],
  [
    "隐私设置",
    ""
  ],
  [
    "关于{name}",
    ""
  ],
  [
    "联系客服",
    ""
  ],
  [
    "退出登录",
    ""
  ],
  [
    "确定退出登录吗？",
    ""
  ],
  [
    "深色模式",
    ""
  ],
  [
    "多语言",
    ""
  ],
  [
    "字体大小",
    ""
  ],
  [
    "访问官网",
    ""
  ],
  [
    "商城",
    ""
  ],
  [
    "商品分类",
    ""
  ],
  [
    "商品详情",
    ""
  ],
  [
    "商品列表、筛选",
    ""
  ],
  [
    "购物车",
    ""
  ],
  [
    "订单列表、详情",
    ""
  ],
  [
    "收货地址",
    ""
  ],
  [
    "聊天",
    ""
  ],
  [
    "对话列表、历史记录",
    ""
  ],
  [
    "流式回复",
    ""
  ],
  [
    "语言合成",
    ""
  ],
  [
    "语音识别",
    ""
  ],
  [
    "其他",
    ""
  ],
  [
    "文件管理",
    ""
  ],
  [
    "该模板正在开发中",
    ""
  ],
  [
    "未登录",
    ""
  ],
  [
    "总点击",
    ""
  ],
  [
    "赞",
    ""
  ],
  [
    "收藏",
    ""
  ],
  [
    "粉丝",
    ""
  ],
  [
    "接单模式",
    ""
  ],
  [
    "已关闭",
    ""
  ],
  [
    "消息通知",
    ""
  ],
  [
    "待支付",
    ""
  ],
  [
    "未发货",
    ""
  ],
  [
    "已发货",
    ""
  ],
  [
    "售后 / 退款",
    ""
  ],
  [
    "我的钱包",
    ""
  ],
  [
    "数据看板",
    ""
  ],
  [
    "历史记录",
    ""
  ],
  [
    "邀请好友",
    ""
  ],
  [
    "设置",
    ""
  ],
  [
    "开发中，敬请期待",
    ""
  ],
  [
    "基础组件",
    ""
  ],
  [
    "文本",
    ""
  ],
  [
    "按钮",
    ""
  ],
  [
    "图片",
    ""
  ],
  [
    "图标",
    ""
  ],
  [
    "标签",
    ""
  ],
  [
    "表单组件",
    ""
  ],
  [
    "表单验证",
    ""
  ],
  [
    "输入框",
    ""
  ],
  [
    "文本域",
    ""
  ],
  [
    "计数器",
    ""
  ],
  [
    "口令输入",
    ""
  ],
  [
    "键盘",
    ""
  ],
  [
    "单选框",
    ""
  ],
  [
    "多选框",
    ""
  ],
  [
    "开关",
    ""
  ],
  [
    "评分",
    ""
  ],
  [
    "滑块",
    ""
  ],
  [
    "选择器",
    ""
  ],
  [
    "日期选择器",
    ""
  ],
  [
    "时间选择器",
    ""
  ],
  [
    "级联选择器",
    ""
  ],
  [
    "文件上传",
    ""
  ],
  [
    "日历",
    ""
  ],
  [
    "布局组件",
    ""
  ],
  [
    "弹性布局",
    ""
  ],
  [
    "标签页",
    ""
  ],
  [
    "折叠面板",
    ""
  ],
  [
    "吸顶",
    ""
  ],
  [
    "导航栏",
    ""
  ],
  [
    "底部视图",
    ""
  ],
  [
    "悬浮视图",
    ""
  ],
  [
    "数据展示",
    ""
  ],
  [
    "查看更多",
    ""
  ],
  [
    "列表",
    ""
  ],
  [
    "列表视图",
    ""
  ],
  [
    "列表刷新",
    ""
  ],
  [
    "瀑布流",
    ""
  ],
  [
    "轮播图",
    ""
  ],
  [
    "跑马灯",
    ""
  ],
  [
    "分页",
    ""
  ],
  [
    "时间轴",
    ""
  ],
  [
    "拖拽",
    ""
  ],
  [
    "筛选栏",
    ""
  ],
  [
    "树形结构",
    ""
  ],
  [
    "状态组件",
    ""
  ],
  [
    "角标",
    ""
  ],
  [
    "通知栏",
    ""
  ],
  [
    "倒计时",
    ""
  ],
  [
    "数字滚动",
    ""
  ],
  [
    "进度条",
    ""
  ],
  [
    "圆形进度条",
    ""
  ],
  [
    "骨架图",
    ""
  ],
  [
    "加载更多",
    ""
  ],
  [
    "反馈组件",
    ""
  ],
  [
    "操作菜单",
    ""
  ],
  [
    "弹窗",
    ""
  ],
  [
    "确认框",
    ""
  ],
  [
    "提示框",
    ""
  ],
  [
    "签名",
    ""
  ],
  [
    "水印",
    ""
  ],
  [
    "图片裁剪",
    ""
  ],
  [
    "Canvas",
    ""
  ],
  [
    "富文本",
    ""
  ],
  [
    "该功能正在开发中",
    ""
  ],
  [
    "圆形",
    ""
  ],
  [
    "组合",
    ""
  ],
  [
    "基础用法",
    ""
  ],
  [
    "自定义",
    ""
  ],
  [
    "加快滚动速度",
    ""
  ],
  [
    "显示小数位数",
    ""
  ],
  [
    "自定义样式",
    ""
  ],
  [
    "自定义颜色",
    ""
  ],
  [
    "自定义宽度",
    ""
  ],
  [
    "不显示文本",
    ""
  ],
  [
    "改个颜色",
    ""
  ],
  [
    "显示文本",
    ""
  ],
  [
    "快一些",
    ""
  ],
  [
    "带图标",
    ""
  ],
  [
    "设置速度",
    ""
  ],
  [
    "垂直方向",
    ""
  ],
  [
    "3秒后加载完成",
    ""
  ],
  [
    "隐藏为 00 的值",
    ""
  ],
  [
    "指定天数",
    ""
  ],
  [
    "自定义模板",
    ""
  ],
  [
    "指定小时",
    ""
  ],
  [
    "指定分钟",
    ""
  ],
  [
    "指定秒",
    ""
  ],
  [
    "完成后提示",
    ""
  ],
  [
    "3秒后开始倒计时",
    ""
  ],
  [
    "结合按钮",
    ""
  ],
  [
    "购买",
    ""
  ],
  [
    "消息",
    ""
  ],
  [
    "结合图片",
    ""
  ],
  [
    "结合图标",
    ""
  ],
  [
    "点击触发",
    ""
  ],
  [
    "不同大小",
    ""
  ],
  [
    "不同颜色",
    ""
  ],
  [
    "使用base64",
    ""
  ],
  [
    "没有错误提示",
    ""
  ],
  [
    "转动图片",
    ""
  ],
  [
    "验证通过",
    ""
  ],
  [
    "验证失败",
    ""
  ],
  [
    "操作",
    ""
  ],
  [
    "清空",
    ""
  ],
  [
    "预览",
    ""
  ],
  [
    "设置高度",
    ""
  ],
  [
    "毛笔效果",
    ""
  ],
  [
    "添加LOGO",
    ""
  ],
  [
    "圆角定位点",
    ""
  ],
  [
    "内间距",
    ""
  ],
  [
    "导出图片",
    ""
  ],
  [
    "矩形",
    ""
  ],
  [
    "点",
    ""
  ],
  [
    "线性",
    ""
  ],
  [
    "小方格",
    ""
  ],
  [
    "格式化",
    ""
  ],
  [
    "添加",
    ""
  ],
  [
    "减去",
    ""
  ],
  [
    "获取某个单位的开始时间",
    ""
  ],
  [
    "获取某个单位的结束时间",
    ""
  ],
  [
    "是否同一天",
    ""
  ],
  [
    "是否早于",
    ""
  ],
  [
    "是否晚于",
    ""
  ],
  [
    "差值",
    ""
  ],
  [
    "差值（单位）",
    ""
  ],
  [
    "选择图片",
    ""
  ],
  [
    "可调节裁剪框大小",
    ""
  ],
  [
    "预览图片",
    ""
  ],
  [
    "保存图片",
    ""
  ],
  [
    "本页面内容由 canvas 渲染生成，是否立即预览图片效果？",
    ""
  ],
  [
    "基础动画",
    ""
  ],
  [
    "淡入淡出",
    ""
  ],
  [
    "播放动画",
    ""
  ],
  [
    "滑入",
    ""
  ],
  [
    "旋转翻转",
    ""
  ],
  [
    "摇摆抖动",
    ""
  ],
  [
    "特殊效果",
    ""
  ],
  [
    "组合动画",
    ""
  ],
  [
    "标题",
    ""
  ],
  [
    "插槽",
    ""
  ],
  [
    "使用 PT 自定义颜色",
    ""
  ],
  [
    "自定义返回图标",
    ""
  ],
  [
    "自定义返回路径",
    ""
  ],
  [
    "自定义标题内容",
    ""
  ],
  [
    "显示滑块",
    ""
  ],
  [
    "添加间距",
    ""
  ],
  [
    "横向填充",
    ""
  ],
  [
    "适用于标签数量不多的情况",
    ""
  ],
  [
    "居中",
    ""
  ],
  [
    "单个禁用",
    ""
  ],
  [
    "显示下划线",
    ""
  ],
  [
    "禁用",
    ""
  ],
  [
    "取消订单",
    ""
  ],
  [
    "立即购买",
    ""
  ],
  [
    "确认收货",
    ""
  ],
  [
    "评价",
    ""
  ],
  [
    "禁用状态，无法拖拽",
    ""
  ],
  [
    "不吸附边缘，任意位置可拖拽",
    ""
  ],
  [
    "这是一个提示",
    ""
  ],
  [
    "左间隔",
    ""
  ],
  [
    "右移动",
    ""
  ],
  [
    "左移动",
    ""
  ],
  [
    "多个数据",
    ""
  ],
  [
    "点击收起",
    ""
  ],
  [
    "点击展开",
    ""
  ],
  [
    "ref 方式调用",
    ""
  ],
  [
    "自定义图标、文字、大小",
    ""
  ],
  [
    "上传证件照",
    ""
  ],
  [
    "多选",
    ""
  ],
  [
    "限制 3 个",
    ""
  ],
  [
    "边框",
    ""
  ],
  [
    "显示字数",
    ""
  ],
  [
    "自动增高",
    ""
  ],
  [
    "其他颜色",
    ""
  ],
  [
    "大一点",
    ""
  ],
  [
    "正方形",
    ""
  ],
  [
    "范围选择",
    ""
  ],
  [
    "显示值",
    ""
  ],
  [
    "步长10",
    ""
  ],
  [
    "滑块大点",
    ""
  ],
  [
    "换个颜色",
    ""
  ],
  [
    "最大50",
    ""
  ],
  [
    "自定义触发器",
    ""
  ],
  [
    "打开选择器",
    ""
  ],
  [
    "多列",
    ""
  ],
  [
    "通过 children 配置多级数据，并使用 column-count 参数指定显示的列数",
    ""
  ],
  [
    "弹窗中使用",
    ""
  ],
  [
    "打开",
    ""
  ],
  [
    "选择地区",
    ""
  ],
  [
    "绑定值",
    ""
  ],
  [
    "下一步",
    ""
  ],
  [
    "确定",
    ""
  ],
  [
    "关闭",
    ""
  ],
  [
    "显示取消按钮",
    ""
  ],
  [
    "修改按钮文案",
    ""
  ],
  [
    "显示绑定值",
    ""
  ],
  [
    "时",
    ""
  ],
  [
    "时:分",
    ""
  ],
  [
    "时:分:秒",
    ""
  ],
  [
    "标签格式化",
    ""
  ],
  [
    "固定开始、结束日期",
    ""
  ],
  [
    "自定义快捷选项",
    ""
  ],
  [
    "只读",
    ""
  ],
  [
    "显示分数",
    ""
  ],
  [
    "允许半星",
    ""
  ],
  [
    "换个图标",
    ""
  ],
  [
    "纵向排列",
    ""
  ],
  [
    "换个样式",
    ""
  ],
  [
    "不显示图标",
    ""
  ],
  [
    "其他样式",
    ""
  ],
  [
    "数字键盘",
    ""
  ],
  [
    "打开键盘",
    ""
  ],
  [
    "是否显示输入值",
    ""
  ],
  [
    "输入即绑定",
    ""
  ],
  [
    "身份证键盘",
    ""
  ],
  [
    "密码键盘",
    ""
  ],
  [
    "是否加密",
    ""
  ],
  [
    "车牌号键盘",
    ""
  ],
  [
    "数字输入",
    ""
  ],
  [
    "密码输入",
    ""
  ],
  [
    "可清除",
    ""
  ],
  [
    "左右插槽",
    ""
  ],
  [
    "左图标",
    ""
  ],
  [
    "右图标",
    ""
  ],
  [
    "自动聚焦",
    ""
  ],
  [
    "长度为6",
    ""
  ],
  [
    "步进为10",
    ""
  ],
  [
    "最小为10",
    ""
  ],
  [
    "最大为50",
    ""
  ],
  [
    "可以小数",
    ""
  ],
  [
    "可以输入",
    ""
  ],
  [
    "用户名",
    ""
  ],
  [
    "请输入用户名",
    ""
  ],
  [
    "邮箱",
    ""
  ],
  [
    "请输入邮箱地址",
    ""
  ],
  [
    "动态验证",
    ""
  ],
  [
    "联系人",
    ""
  ],
  [
    "添加联系人",
    ""
  ],
  [
    "身高",
    ""
  ],
  [
    "体重",
    ""
  ],
  [
    "所在地区",
    ""
  ],
  [
    "出生年月",
    ""
  ],
  [
    "个人简介",
    ""
  ],
  [
    "请输入个人简介",
    ""
  ],
  [
    "公开状态",
    ""
  ],
  [
    "重置",
    ""
  ],
  [
    "提交",
    ""
  ],
  [
    "未知",
    ""
  ],
  [
    "篮球",
    ""
  ],
  [
    "足球",
    ""
  ],
  [
    "羽毛球",
    ""
  ],
  [
    "乒乓球",
    ""
  ],
  [
    "游泳",
    ""
  ],
  [
    "用户名不能为空",
    ""
  ],
  [
    "用户名长度在3-20个字符之间",
    ""
  ],
  [
    "邮箱不能为空",
    ""
  ],
  [
    "邮箱格式不正确",
    ""
  ],
  [
    "身高不能为空",
    ""
  ],
  [
    "身高在160-190cm之间",
    ""
  ],
  [
    "体重不能为空",
    ""
  ],
  [
    "体重在40-100kg之间",
    ""
  ],
  [
    "标签不能为空",
    ""
  ],
  [
    "标签最多选择2个",
    ""
  ],
  [
    "性别不能为空",
    ""
  ],
  [
    "出生年月不能为空",
    ""
  ],
  [
    "出生年月不大于2010-01-01",
    ""
  ],
  [
    "联系人不能为空",
    ""
  ],
  [
    "提交成功",
    ""
  ],
  [
    "单个 true / false",
    ""
  ],
  [
    "带索引、地区选择",
    ""
  ],
  [
    "换个分隔符",
    ""
  ],
  [
    "列表高度小一点",
    ""
  ],
  [
    "范围选",
    ""
  ],
  [
    "禁用部分日期",
    ""
  ],
  [
    "日历长列表",
    ""
  ],
  [
    "打开日历长列表",
    ""
  ],
  [
    "日历面板",
    ""
  ],
  [
    "自定义文案和颜色",
    ""
  ],
  [
    "显示头",
    ""
  ],
  [
    "显示星期",
    ""
  ],
  [
    "显示其他月份",
    ""
  ],
  [
    "不同位置",
    ""
  ],
  [
    "顶部",
    ""
  ],
  [
    "中间",
    ""
  ],
  [
    "底部",
    ""
  ],
  [
    "不同类型",
    ""
  ],
  [
    "成功",
    ""
  ],
  [
    "失败",
    ""
  ],
  [
    "警告",
    ""
  ],
  [
    "问题",
    ""
  ],
  [
    "停止",
    ""
  ],
  [
    "自定义图标",
    ""
  ],
  [
    "只存在一个",
    ""
  ],
  [
    "不同位置提示",
    ""
  ],
  [
    "不同类型提示",
    ""
  ],
  [
    "带图标提示",
    ""
  ],
  [
    "移除其他已存在的提示",
    ""
  ],
  [
    "打开弹窗",
    ""
  ],
  [
    "设置宽度 80%",
    ""
  ],
  [
    "无头",
    ""
  ],
  [
    "左侧",
    ""
  ],
  [
    "右侧",
    ""
  ],
  [
    "隐藏取消按钮",
    ""
  ],
  [
    "自定义文本",
    ""
  ],
  [
    "关闭前钩子",
    ""
  ],
  [
    "显示时长",
    ""
  ],
  [
    "确定要删除吗？",
    ""
  ],
  [
    "确定要删除吗？3秒后自动关闭",
    ""
  ],
  [
    "带标题、描述",
    ""
  ],
  [
    "无法点击遮罩关闭",
    ""
  ],
  [
    "不需要取消按钮",
    ""
  ],
  [
    "插槽用法",
    ""
  ],
  [
    "反馈",
    ""
  ],
  [
    "删除好友会同时删除所有聊天记录",
    ""
  ],
  [
    "删除好友",
    ""
  ],
  [
    "确定要删除好友吗？",
    ""
  ],
  [
    "点我关闭",
    ""
  ],
  [
    "确定要关闭吗？",
    ""
  ],
  [
    "支付宝",
    ""
  ],
  [
    "微信",
    ""
  ],
  [
    "父子关联",
    ""
  ],
  [
    "选中值",
    ""
  ],
  [
    "选中操作",
    ""
  ],
  [
    "选中部分节点",
    ""
  ],
  [
    "获取选中节点",
    ""
  ],
  [
    "获取半选节点",
    ""
  ],
  [
    "清空选中",
    ""
  ],
  [
    "展开操作",
    ""
  ],
  [
    "展开部分节点",
    ""
  ],
  [
    "获取展开节点",
    ""
  ],
  [
    "展开所有",
    ""
  ],
  [
    "收起所有",
    ""
  ],
  [
    "开通账号",
    ""
  ],
  [
    "赠送500元",
    ""
  ],
  [
    "完成实名认证",
    ""
  ],
  [
    "通过身份证认证",
    ""
  ],
  [
    "绑定银行卡",
    ""
  ],
  [
    "绑定招商银行储蓄卡",
    ""
  ],
  [
    "首次充值",
    ""
  ],
  [
    "充值1000元",
    ""
  ],
  [
    "完成首笔交易",
    ""
  ],
  [
    "优选灵活配置混合A",
    ""
  ],
  [
    "1000元起",
    ""
  ],
  [
    "禁用切换按钮",
    ""
  ],
  [
    "自定义高度",
    ""
  ],
  [
    "多页数",
    ""
  ],
  [
    "上一页",
    ""
  ],
  [
    "下一页",
    ""
  ],
  [
    "横向滚动",
    ""
  ],
  [
    "纵向滚动",
    ""
  ],
  [
    "快一点",
    ""
  ],
  [
    "暂停",
    ""
  ],
  [
    "内容靠左",
    ""
  ],
  [
    "QQ",
    ""
  ],
  [
    "带箭头",
    ""
  ],
  [
    "余额",
    ""
  ],
  [
    "带图片",
    ""
  ],
  [
    "神仙都没用",
    ""
  ],
  [
    "折叠",
    ""
  ],
  [
    "可滑动",
    ""
  ],
  [
    "左滑编辑",
    ""
  ],
  [
    "编辑",
    ""
  ],
  [
    "右滑删除",
    ""
  ],
  [
    "账号",
    ""
  ],
  [
    "我的订单",
    ""
  ],
  [
    "我的收藏",
    ""
  ],
  [
    "筛选",
    ""
  ],
  [
    "长按项即可拖动排序",
    ""
  ],
  [
    "单列排序",
    ""
  ],
  [
    "不需要长按",
    ""
  ],
  [
    "结合列表使用",
    ""
  ],
  [
    "多列排序",
    ""
  ],
  [
    "结合图片使用",
    ""
  ],
  [
    "禁用手势",
    ""
  ],
  [
    "自定义样式2",
    ""
  ],
  [
    "无图片",
    ""
  ],
  [
    "圆角",
    ""
  ],
  [
    "自定义大小",
    ""
  ],
  [
    "省略号",
    ""
  ],
  [
    "多行省略号",
    ""
  ],
  [
    "金额",
    ""
  ],
  [
    "手机号脱敏",
    ""
  ],
  [
    "姓名脱敏",
    ""
  ],
  [
    "邮箱脱敏",
    ""
  ],
  [
    "银行卡脱敏",
    ""
  ],
  [
    "自定义脱敏字符",
    ""
  ],
  [
    "主要",
    ""
  ],
  [
    "危险",
    ""
  ],
  [
    "信息",
    ""
  ],
  [
    "邮件",
    ""
  ],
  [
    "文件",
    ""
  ],
  [
    "可关闭",
    ""
  ],
  [
    "镂空",
    ""
  ],
  [
    "自定义无圆角",
    ""
  ],
  [
    "不同裁剪",
    ""
  ],
  [
    "点击可预览",
    ""
  ],
  [
    "失败时显示",
    ""
  ],
  [
    "自定义圆角",
    ""
  ],
  [
    "设置颜色",
    ""
  ],
  [
    "设置大小",
    ""
  ],
  [
    "集成 iconfont 与 remixicon 图标库，展示部分示例",
    ""
  ],
  [
    "iconfont",
    ""
  ],
  [
    "remixicon",
    ""
  ],
  [
    "复制成功",
    ""
  ],
  [
    "普通",
    ""
  ],
  [
    "浅色",
    ""
  ],
  [
    "深色",
    ""
  ],
  [
    "只显示图标",
    ""
  ],
  [
    "文本模式",
    ""
  ],
  [
    "带边框",
    ""
  ],
  [
    "圆角按钮",
    ""
  ],
  [
    "带左侧图标",
    ""
  ],
  [
    "小",
    ""
  ],
  [
    "默认",
    ""
  ],
  [
    "大",
    ""
  ],
  [
    "无权限",
    ""
  ],
  [
    "服务异常",
    ""
  ],
  [
    "请在微信浏览器中打开",
    ""
  ],
  [
    "已取消支付",
    ""
  ],
  [
    "支付失败",
    ""
  ],
  [
    "授权信息仅用于用户登录",
    ""
  ],
  [
    "登录授权失败",
    ""
  ],
  [
    "获取短信验证码",
    ""
  ],
  [
    "验证码",
    ""
  ],
  [
    "发送短信",
    ""
  ],
  [
    "{n}s后重新获取",
    ""
  ],
  [
    "获取验证码",
    ""
  ],
  [
    "短信已发送，请查收",
    ""
  ],
  [
    "请填写验证码",
    ""
  ],
  [
    "请填写正确的手机号格式",
    ""
  ],
  [
    "全局字号",
    ""
  ],
  [
    "这是一段示例文字，用于预览不同字号的效果。",
    ""
  ],
  [
    "默认 1.0",
    ""
  ],
  [
    "切换语言",
    ""
  ],
  [
    "切换中",
    ""
  ],
  [
    "模板",
    ""
  ],
  [
    "编辑资料",
    ""
  ],
  [
    "Text 文本",
    ""
  ],
  [
    "Button 按钮",
    ""
  ],
  [
    "Image 图片",
    ""
  ],
  [
    "Icon 图标",
    ""
  ],
  [
    "Tag 标签",
    ""
  ],
  [
    "Form 表单验证",
    ""
  ],
  [
    "Input 输入框",
    ""
  ],
  [
    "Textarea 文本域",
    ""
  ],
  [
    "InputNumber 计数器",
    ""
  ],
  [
    "InputOtp 口令输入",
    ""
  ],
  [
    "Keyboard 键盘",
    ""
  ],
  [
    "Radio 单选框",
    ""
  ],
  [
    "Checkbox 多选框",
    ""
  ],
  [
    "Switch 开关",
    ""
  ],
  [
    "Rate 评分",
    ""
  ],
  [
    "Slider 滑块",
    ""
  ],
  [
    "Select 选择器",
    ""
  ],
  [
    "SelectDate 日期选择器",
    ""
  ],
  [
    "SelectTime 时间选择器",
    ""
  ],
  [
    "Cascader 级联选择器",
    ""
  ],
  [
    "Upload 文件上传",
    ""
  ],
  [
    "Calendar 日历",
    ""
  ],
  [
    "Flex 弹性布局",
    ""
  ],
  [
    "Tabs 标签页",
    ""
  ],
  [
    "Collapse 折叠面板",
    ""
  ],
  [
    "Sticky 吸顶",
    ""
  ],
  [
    "TopBar 导航栏",
    ""
  ],
  [
    "FloatView 悬浮视图",
    ""
  ],
  [
    "Footer 底部视图",
    ""
  ],
  [
    "List 列表",
    ""
  ],
  [
    "ListView 列表视图",
    ""
  ],
  [
    "ListViewRefresh 列表刷新",
    ""
  ],
  [
    "Waterfall 瀑布流",
    ""
  ],
  [
    "Banner 轮播图",
    ""
  ],
  [
    "Marquee 跑马灯",
    ""
  ],
  [
    "Pagination 分页",
    ""
  ],
  [
    "Timeline 时间轴",
    ""
  ],
  [
    "Avatar 头像",
    ""
  ],
  [
    "ReadMore 查看更多",
    ""
  ],
  [
    "Draggable 拖拽",
    ""
  ],
  [
    "FilterBar 筛选栏",
    ""
  ],
  [
    "Tree 树形结构",
    ""
  ],
  [
    "Badge 角标",
    ""
  ],
  [
    "NoticeBar 通知栏",
    ""
  ],
  [
    "Countdown 倒计时",
    ""
  ],
  [
    "Progress 进度条",
    ""
  ],
  [
    "ProgressCircle 圆形进度条",
    ""
  ],
  [
    "Skeleton 骨架图",
    ""
  ],
  [
    "LoadMore 加载更多",
    ""
  ],
  [
    "RollingNumber 数字滚动",
    ""
  ],
  [
    "ActionSheet 操作菜单",
    ""
  ],
  [
    "Popup 弹窗",
    ""
  ],
  [
    "Confirm 确认框",
    ""
  ],
  [
    "Toast 提示框",
    ""
  ],
  [
    "QRCode 二维码",
    ""
  ],
  [
    "Sign 签名",
    ""
  ],
  [
    "DayUts 日期",
    ""
  ],
  [
    "Vibrate 震动",
    ""
  ],
  [
    "Cropper 图片裁剪",
    ""
  ],
  [
    "Canvas 画布",
    ""
  ],
  [
    "SVG 图标",
    ""
  ],
  [
    "SlideVerify 滑动验证",
    ""
  ],
  [
    "Animation 动画",
    ""
  ],
  [
    "编辑地址",
    ""
  ],
  [
    "cool-unix",
    ""
  ],
  [
    "首页",
    ""
  ],
  [
    "我的",
    ""
  ],
  [
    "这是一段需要保护的内容",
    ""
  ],
  [
    "水印会覆盖在内容上方，防止内容被盗用",
    ""
  ],
  [
    "可自定义的水印内容区域",
    ""
  ],
  [
    "水印文本",
    ""
  ],
  [
    "字体大小",
    ""
  ],
  [
    "透明度",
    ""
  ],
  [
    "旋转角度",
    ""
  ],
  [
    "水印宽度",
    ""
  ],
  [
    "水印高度",
    ""
  ],
  [
    "水平间距",
    ""
  ],
  [
    "垂直间距",
    ""
  ],
  [
    "字体粗细",
    ""
  ],
  [
    "正常",
    ""
  ],
  [
    "加粗",
    ""
  ],
  [
    "多行文本水印",
    ""
  ],
  [
    "重要文档",
    ""
  ],
  [
    "这是一份重要的文档内容，需要添加水印保护。",
    ""
  ],
  [
    "水印可以防止内容被未授权的复制和传播。",
    ""
  ],
  [
    "图片保护",
    ""
  ],
  [
    "星球",
    ""
  ],
  [
    "组件",
    ""
  ],
  [
    "开源星球",
    ""
  ]
]
const messages = {
	"zh-cn": parse(zhcn),
	// "zh-tw": parse(zhtw),
	// #ifndef APP
	"en": parse(en)
	// #endif
	// es: parse(es),
	// ja: parse(ja),
	// ko: parse(ko),
	// fr: parse(fr)
};

// 当前语言，默认中文
export const locale = ref<string>("");

// 设置当前语言
export const setLocale = (value: string) => {
	locale.value = value;

	// #ifdef APP
	// APP 环境下，存储语言到本地
	storage.set("locale", value, 0);
	// #endif

	// #ifndef APP
	// 其他环境下，直接设置全局语言
	uni.setLocale(value);
	// #endif
};

// 获取当前语言
export const getLocale = (): string => {
	let value: string;

	// #ifdef APP
	// APP 环境下，优先从本地存储获取
	const _locale = storage.get("locale") as string | null;

	if (_locale != null && !isEmpty(_locale)) {
		value = _locale;
	} else {
		// @ts-ignore
		value = uni.getDeviceInfo().osLanguage as string;
	}

	// #endif

	// #ifndef APP
	// 其他环境下，直接获取全局语言
	value = uni.getLocale();
	// #endif

	if (isNull(value) || isEmpty(value)) {
		value = config.locale;
	}

	return value;
};

// 追加数据
export const appendLocale = (name: string, data: string[][]) => {
	if (messages[name] != null) {
		(messages[name] as string[][]).unshift(...parse(data));
	}
};

// 不带参数的翻译方法
export const t = (name: string) => {
	let data = messages[locale.value] as string[][] | null;

	if (data == null) {
		return name;
	}

	let text = data.find((e) => e[0] == name)?.[1];

	if (text == null || text == "") {
		text = name;
	}

	return text;
};

// 带参数的翻译方法
export const $t = (name: string, data: any) => {
	let text = t(name);

	// 替换参数
	if (!isNull(data)) {
		forInObject(data, (value, key) => {
			if (typeof value === "number") {
				value = value.toString();
			}

			text = text.replaceAll(`{${key}}`, value as string);
		});
	}

	return text;
};

// 初始化语言设置
export const initLocale = () => {
	locale.value = getLocale();

	// #ifndef APP
	// 监听语言切换事件，自动更新 locale
	uni.onLocaleChange((res) => {
		setLocale(res.locale!);
	});
	// #endif
};

// 更新标题
export function updateTitle() {
	const style = router.route()?.style;

	if (style != null) {
		if (style.navigationBarTitleText != null) {
			uni.setNavigationBarTitle({
				title: t(style.navigationBarTitleText as string)
			});
		}
	}
}
